package cn.uce.cc.api.service.biz;


import cn.uce.base.page.Page;
import cn.uce.base.page.Pagination;
import cn.uce.ics.base.entity.cs.CsWoCustSer;
import cn.uce.ics.base.entity.cs.CsWoWorkOrder;
import cn.uce.ics.base.vo.cs.CsWoCustSerVo;
import cn.uce.web.common.base.CurrentUser;

import java.util.Map;

/*
 * @Author liupan
 * @Description  cc来电弹屏关于客服工单
 * @Date  2020-05-08 10:47
 */
public interface ICcWoCustSerBiz {
    /**
     * 客户工单的提交方法
     * @param csWoCustSer
     * @param csWoWorkOrder
     * @param currentUser
     * @return
     */
    Map<String, Object> submit(CsWoCustSer csWoCustSer, CsWoWorkOrder csWoWorkOrder, CurrentUser currentUser);

    Map<String,Object> getCsWoCustSerVoLists(CsWoCustSerVo csWoCustSerVo, Page page);

    Map<String, Object> getFirstNodeDealOrg(String wayBillNum, Long orderChilType, int source);

    int checkSameCsWoCustSer(CsWoCustSerVo csWoCustSerVo);
    /**
     * 校验是否允许创建
     */
    int checkCanCreate(String wayBillNum, Long orderChilType, int source);

    /**
     * 校验运单号是否必填
     */
    int checkRequireWayBillNum(Long orderType, Long orderChilType, int source);

    /**
     * 校验机构是否手动选择
     */
    int checkManualSelMechanism(Long orderChilType, int source);
}
